Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Conversation

@tarwin
Copy link
Contributor

@tarwin tarwin commented Apr 7, 2021

Implemented simple caching that lasts 1 minute for:

  • /feed - supports offset for paging
  • /featured - supports offset for paging
  • o.json and w.json ban lists

This is a temporary fix to speed the site up before a rewrite. It should both minimize load times on the feed and make the Lambdas less expensive to run.

Also note this could be implemented for the hDAO feed as well.

Implementing for random would need caching of the getUniverse call which is a whole different thing and should wait until a rewrite is complete. That said, it could be easy to implement a set of randoms ie have a bucket of 10 random caches that can only be updated once a minute. On each request show data from one of these caches, unless it has expired. This way you could click random a few times a minute and it would still be fast.

@veqtor veqtor changed the base branch from master to develop April 8, 2021 06:08
@veqtor
Copy link
Collaborator

veqtor commented Apr 8, 2021

Nice, merging!

@veqtor veqtor merged commit 6418933 into hicetnunc2000:develop Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants